package ronglei.day01.demo09Arrays;

import java.util.Arrays;

public class Arrays02 {
    public static void main(String[] args) {
        String str = "jkdgasufvavfbk";
        //进行生序排列
        //必须是一个数组才能进行排序
       char[] chars=  str.toCharArray();
        Arrays.sort(chars);
        System.out.println(chars);
        for (int i = chars.length - 1; i >= 0; i--) {
            System.out.println(chars[i]);
        }
    }
}
